<?php $categories = $form->getObject() ?>
<h1><?php echo $categories->isNew() ?__("New Categories") : __("Edit Categories") ?></h1>

<form action="<?php echo url_for('categories/update'.(!$categories->isNew() ? '?categories_id='.$categories->getCategoriesId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('categories/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$categories->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'categories/delete?categories_id='.$categories->getCategoriesId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="<?php echo __("Save") ?>" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['categories_image']->renderLabel() ?></th>
        <td>
          <?php echo $form['categories_image']->renderError() ?>
          <?php echo $form['categories_image'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['parent_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['parent_id']->renderError() ?>
          <?php echo $form['parent_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['sort_order']->renderLabel() ?></th>
        <td>
          <?php echo $form['sort_order']->renderError() ?>
          <?php echo $form['sort_order'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_to_categories_list']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_to_categories_list']->renderError() ?>
          <?php echo $form['products_to_categories_list'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['en']->renderLabel() ?></th>
        <td>
          <?php echo $form['en']->renderError() ?>
          <?php echo $form['en'] ?>

        <?php echo $form['categories_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['de']->renderLabel() ?></th>
        <td>
          <?php echo $form['de']->renderError() ?>
          <?php echo $form['de'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['es']->renderLabel() ?></th>
        <td>
          <?php echo $form['es']->renderError() ?>
          <?php echo $form['es'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['fr']->renderLabel() ?></th>
        <td>
          <?php echo $form['fr']->renderError() ?>
          <?php echo $form['fr'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
